# from channels.routing import ProtocolTypeRouter
# from consumer import routing
#
# application = ProtocolTypeRouter({
#     'websocket': routing.websocket_urlpatterns
# })

from channels.routing import ProtocolTypeRouter, ChannelNameRouter
from consumer import routing
# from consumer import routing, executors

application = ProtocolTypeRouter({
    # 'channel': ChannelNameRouter({
    #     'ssh_exec': executors.SSHExecutor,
    # }),
    'websocket': routing.ws_router
})
